/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Chainofresponsability3;

/**
 *
 * @author Marcel
 */
class VicePresidentPPower extends PurchasePower {
    private final double ALLOWABLE = 40 * base;
 
    public void processRequest(PurchaseRequest request) {
        if (request.getAmount() < ALLOWABLE) {
            System.out.println("Vice President will approve $" + request.getAmount());
        } else if (successor != null) {
            successor.processRequest(request);
        }
    }
}
